package cn.maxwell.pet.service;

import cn.maxwell.basic.service.IBaseService;
import cn.maxwell.basic.util.PageList;
import cn.maxwell.pet.domain.SearchMasterMsg;
import cn.maxwell.pet.dto.AcceptDto;
import cn.maxwell.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {
    /**
     * 发布寻主消息
     * @param searchMasterMsg
     * @param logininfo_id
     */
    void publish(SearchMasterMsg searchMasterMsg, Long logininfo_id);

    /**
     * 拒单
     * @param id
     */
    void reject(Long id);

    /**
     * 用户寻主消息查询
     * @param query
     * @param request
     * @return
     */
    PageList<SearchMasterMsg> userSearchMasterMsg(SearchMasterMsgQuery query, HttpServletRequest request);

    /**
     * 待处理寻主消息查询
     * @param query
     * @param request
     * @return
     */
    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, HttpServletRequest request);

    /**
     * 接单
     * @param dto
     * @param id
     */
    void accept(AcceptDto dto, Long id);
}
